package top.itpath.common.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import top.itpath.admin.entity.SysRole;

/**
 * 更新角色授权事件
 *
 * @author zhaomengru
 * @time 2023/10/14 - 11:47
 */
@Getter
public class UpdateRoleMenuEvent extends ApplicationEvent {

    /**
     * 发生事件的角色
     */
    private final SysRole sysRole;

    public UpdateRoleMenuEvent(Object source, SysRole sysRole) {
        super(source);
        this.sysRole = sysRole;
    }
}
